// #ifndef VUE3
import Vue from 'vue'
import App from './App'

// 引入全局uView
import uniIcons from '@/uni_modules/uni-icons/components/uni-icons/uni-icons.vue'
import uniCard from '@/uni_modules/uni-card/components/uni-card/uni-card.vue'
import uniSection from '@/uni_modules/uni-section/components/uni-section/uni-section.vue'
import uniList from '@/uni_modules/uni-list/components/uni-list/uni-list.vue'
import uniListItem from '@/uni_modules/uni-list/components/uni-list-item/uni-list-item.vue'
import uniForms from '@/uni_modules/uni-forms/components/uni-forms/uni-forms.vue'
import uniFormsItem from '@/uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.vue'
import uniEasyinput from '@/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue'
import uniDataSelect from '@/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue'
import uniDatetimePicker from '@/uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue'
import uniDataCheckbox from '@/uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox.vue'
import uniTag from '@/uni_modules/uni-tag/components/uni-tag/uni-tag.vue'
import uniPopup from '@/uni_modules/uni-popup/components/uni-popup/uni-popup.vue'
import uniPopupDialog from '@/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue'
import uniSearchBar from '@/uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar.vue'
import uniGrid from '@/uni_modules/uni-grid/components/uni-grid/uni-grid.vue'
import uniGridItem from '@/uni_modules/uni-grid/components/uni-grid-item/uni-grid-item.vue'
import uniNoticeBar from '@/uni_modules/uni-notice-bar/components/uni-notice-bar/uni-notice-bar.vue'

// 注册组件
Vue.component('uni-icons', uniIcons)
Vue.component('uni-card', uniCard)
Vue.component('uni-section', uniSection)
Vue.component('uni-list', uniList)
Vue.component('uni-list-item', uniListItem)
Vue.component('uni-forms', uniForms)
Vue.component('uni-forms-item', uniFormsItem)
Vue.component('uni-easyinput', uniEasyinput)
Vue.component('uni-data-select', uniDataSelect)
Vue.component('uni-datetime-picker', uniDatetimePicker)
Vue.component('uni-tag', uniTag)
Vue.component('uni-popup', uniPopup)
Vue.component('uni-popup-dialog', uniPopupDialog)
Vue.component('uni-search-bar', uniSearchBar)
Vue.component('uni-grid', uniGrid)
Vue.component('uni-grid-item', uniGridItem)
Vue.component('uni-data-checkbox', uniDataCheckbox)
Vue.component('uni-notice-bar', uniNoticeBar)

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif